import React from 'react'
import {HashRouter as Router, Route} from 'react-router-dom'
import Main from '../route1/Main'
import About from '../route1/About'
import Topic from '../route1/Topic'
import Page from './Page'
export default class IRouter extends React.Component{

  render () {
    return (
      <Router>
        <Page>
          <Route path='/home' render={()=>{
            return (
              <Main>
                <Route path='/home/a' component={About}></Route>
              </Main>
            )
          }}></Route>
          <Route path='/about' component={About}></Route>
          <Route path='/topic' component={Topic}></Route>
        </Page>
      </Router>
    )
  }
}